<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/12/1
  Time: 10:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html>
<head>
    <title>Title</title>
</head>

<style>
    .layui-form-checkbox[lay-skin=primary] {
        max-height: 0px;
    }
</style>
<body>
<div class="layui-container">
    <br>
    <form class="layui-form" action="addStudent.do" method="post">

        <div class="layui-form-item">
            <label class="layui-form-label">姓名</label>
            <div class="layui-input-block">
                <input type="text" name="sname" required  lay-verify="required" placeholder="username" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">吃饭 睡觉 打豆豆 羽毛球</label>
            <div class="layui-input-block">
                <c:forEach var="hobby" items="${hobbyList}" varStatus="status">
                    <input type="checkbox" name="hobby"  title="${hobby.hname}" value="${hobby.hid}" lay-skin="primary"  >
                </c:forEach>
<%--                <input type="checkbox" name="receiveFTP" id="system-room-receiveFTP" lay-filter="system-room-receiveFTP" title="跳" lay-skin="primary">--%>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">地址</label>
            <div class="layui-input-block">
                <select name="cid" class="layui-btn-primary" style="margin-bottom: 10px;    height: 36px; line-height: 36px;padding: 0 18px; border: 1px solid #E9E9E9">
                    <c:forEach var="cla" items="${classesList}" varStatus="status">
                        <option class="cls"  value="${cla.cid}">${cla.cname}</option>
                    </c:forEach>
                </select>
            </div>
        </div>



        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>

</div>
</body>
</html>
